<?php

/**
 * @BelongProject: flami_mangers
 * @Author: Zwc
 * @CreateTime: 2025-10-31 20:05:39
 * @Description: TODO
 */

namespace app\admin\logic;

use app\admin\model\SayhiModel;

class SayhiLogic
{
    /**
     * 列表
     * @param $params
     * @return \think\Paginator
     * @throws \think\db\exception\DbException
     */
    public static function getData($params): \think\Paginator
    {
        $condition = [
            'del_flag' => 0,
        ];
        if (!empty($params['langId'])) {
            $condition['lang_id'] = $params['langId'];
        }

        $model = new SayhiModel();
        return $model->where($condition)
            ->paginate(20);
    }


}